//
//  MVTableList.m
//  __PRODUCTNAME__
//
//  Created by Hanlingyu on 16/08/15
//  Copyright (c) ltq. All rights reserved.
//

#import "MVTableList.h"
#import "MVCollectionList.h"

@implementation MVTableList

+ (NSDictionary *)objectClassInArray{
    return @{@"mvlist" : [MVCollectionList class]};
}

- (void)setValue:(id)value forKey:(NSString *)key {
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"mvlist"]) {
        NSMutableArray<MVCollectionList *> *collectionListArr = [NSMutableArray array];
        for (NSDictionary *dict in value) {
            MVCollectionList *mvCollectionList = [MVCollectionList modelWithDict:dict];
            [collectionListArr addObject:mvCollectionList];
        }
        _mvlist = collectionListArr;
    }
}

@end
